import java.math.BigDecimal;
import java.util.Arrays;
import java.util.StringJoiner;

public class H {

    private int age ;
    private String name;
    



    public static void main(String[] args) {
      

    // isBlank判断字符串是否仅为空白符(\t,\n,\r,空格等)， 而 isEmpty判断字符串是否为空，即字符串长度是否为0  
    String s = " \t";  
    //boolean f = s.isBlank(); //是否包含空白字符，为true表示有空白符，并且空白长度为3
    // "  \n".isBlank(); // true，因为只包含空白字符
    boolean f = s.isEmpty();   //为 false ，字符串是否为空(即字符串长度是否为0)，字符串长度0时
    System.out.println(f); //false
    boolean fb = s.isBlank(); //true
    System.out.println(fb);

     String[] arr = {"3","5","2","53","32"};
     String st = Arrays.toString(arr);
    System.out.println(st);
    var sj = new StringJoiner(",");
    // for(String i : arr){
    //     sj.add(i);
    // }
    // System.out.println(sj.toString());
    BigDecimal n = new BigDecimal("12.75");
    BigDecimal m = new BigDecimal("0.15");
    BigDecimal[] dr = n.divideAndRemainder(m);

    //BigDecimal num = new BigDecimal("0.15");
    if (dr[1].signum() == 0) {
        // n是m的整数倍
        System.out.println("n是m的整数倍" + dr[1]);
    }else{
        System.out.println("n不是m整数倍");
    }
   
    try{
        //求随机整数(10,50)
        double x = Math.random(); // x的范围是[0,1)
        double min = 10;
        double max = 50;
        double y = x * (max - min) + min; // y的范围是[10,50)
        long nn = (long) y; // n的范围是[10,50)的整数
        System.out.println(nn);
    }catch(Exception e){
        e.printStackTrace();
    }    


    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    
}